﻿<script>
    var strClass = ComFunJS.getQueryString("Class");
    var strId = ComFunJS.getQueryString("ID");
    var model = avalon.define({
        $id: "ZiDianEdit",
        modelData: { "TypeNO": "", "Class": strClass },
    });
    function getdata() {
        var modelValue = JSON.stringify(model.modelData.$model);
        return { Action: "MODIFYCOLUMN", P1: modelValue };
    }
    avalon.ready(function () {
        if (strId != null) {
            $.getJSON('/API/FTAPI.ashx?Action=GETCOLUMNBYID', { P1: strId, P2: strClass }, function (resultData) {
                if (resultData.ErrorMsg == "") {
                    model.modelData = resultData.Result;
                }
            })
        }

    })
</script>
<div class="form-horizontal" ms-controller="ZiDianEdit" style="margin-left:150px; margin-top:50px;">
    <div class="form-group">
        <label class="col-xs-2 control-label" ms-if="modelData.Class==6">栏目名称</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==7">日志类型</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==8">客户类别</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==9">销售阶段</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==3">假别设置</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==4">类别设置</label>
        <label class="col-xs-2 control-label" ms-if="modelData.Class==10">流程类别</label>
        <div class="col-xs-4">
            <input type="text" value="" class="span2  form-control szhl_require" ms-duplex="modelData.TypeNO" id="qygg" />
        </div>
    </div>
</div>